package com.dragon.modules.yuegou.entity.act;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.act.OffActivityStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 线下抽奖活动表实体类<br>
 * 对应的表为：act_off_activity<br>
 * 
 * @author pbuilder generated
 * @date 2019-11-20 10:03:06
 * @company sgy
 * @version 2.0
 */
@TableName("act_off_activity")
@ApiModel(description = "线下抽奖活动表")
public class OffActivityEntity {

    /**  */
	protected String id;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 名称 */
	@ApiModelProperty("名称")
	protected String name;

    /** 跳转参加活动地址 */
	@ApiModelProperty("跳转参加活动地址")
	protected String url;

    /** 规则 */
	@ApiModelProperty("规则")
	protected String rule;

    /** 上架状态 0-下架；1-上架 */
	@ApiModelProperty("上架状态 0-下架；1-上架")
	protected Boolean publishStatus;

    /** [枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER */
	@ApiModelProperty("[枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER")
	protected OffActivityStatus status;

    /** 活动日期 */
	@ApiModelProperty("活动日期")
	protected LocalDateTime drawTime;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected String modifiedBy;

    /** 删除 0-未删除；1-已删除 */
	@ApiModelProperty("删除 0-未删除；1-已删除")
	protected Boolean del;

    /**  */
	protected LocalDateTime delTime;

    /**  */
	protected String delBy;

	/**
	 * 构造一个空线下抽奖活动表实体对象
	 */
	public OffActivityEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个线下抽奖活动表实体对象
	 * 
	 * @param other 其它对象
	 */
	public OffActivityEntity(OffActivityEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.name = other.name;
     	this.url = other.url;
     	this.rule = other.rule;
     	this.publishStatus = other.publishStatus;
     	this.status = other.status;
     	this.drawTime = other.drawTime;
     	this.createdTime = other.createdTime;
     	this.createdBy = other.createdBy;
     	this.modifiedTime = other.modifiedTime;
     	this.modifiedBy = other.modifiedBy;
     	this.del = other.del;
     	this.delTime = other.delTime;
     	this.delBy = other.delBy;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取名称
	 * 
	 * @return name 名称
	 */
	public String getName() {
		return name;
	}
  	
	/**
	 * 设置名称
	 * 
	 * @param name 名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取跳转参加活动地址
	 * 
	 * @return url 跳转参加活动地址
	 */
	public String getUrl() {
		return url;
	}
  	
	/**
	 * 设置跳转参加活动地址
	 * 
	 * @param url 跳转参加活动地址
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * 获取规则
	 * 
	 * @return rule 规则
	 */
	public String getRule() {
		return rule;
	}
  	
	/**
	 * 设置规则
	 * 
	 * @param rule 规则
	 */
	public void setRule(String rule) {
		this.rule = rule;
	}

	/**
	 * 获取上架状态 0-下架；1-上架
	 * 
	 * @return publishStatus 上架状态 0-下架；1-上架
	 */
	public Boolean getPublishStatus() {
		return publishStatus;
	}
  	
	/**
	 * 设置上架状态 0-下架；1-上架
	 * 
	 * @param publishStatus 上架状态 0-下架；1-上架
	 */
	public void setPublishStatus(Boolean publishStatus) {
		this.publishStatus = publishStatus;
	}

	/**
	 * 获取[枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @return status [枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 */
	public OffActivityStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @param status [枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 */
	public void setStatus(OffActivityStatus status) {
		this.status = status;
	}

	/**
	 * 获取活动日期
	 * 
	 * @return drawTime 活动日期
	 */
	public LocalDateTime getDrawTime() {
		return drawTime;
	}
  	
	/**
	 * 设置活动日期
	 * 
	 * @param drawTime 活动日期
	 */
	public void setDrawTime(LocalDateTime drawTime) {
		this.drawTime = drawTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取删除 0-未删除；1-已删除
	 * 
	 * @return del 删除 0-未删除；1-已删除
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

    public String toString() {
		return new StringBuilder().append("OffActivityEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",name=").append(name).
			append(",url=").append(url).
			append(",rule=").append(rule).
			append(",publishStatus=").append(publishStatus).
			append(",status=").append(status).
			append(",drawTime=").append(drawTime).
			append(",createdTime=").append(createdTime).
			append(",createdBy=").append(createdBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",del=").append(del).
			append(",delTime=").append(delTime).
			append(",delBy=").append(delBy).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public OffActivityEntity copy() {
		return new OffActivityEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 名称 */
	public static final String COL_NAME = "name";

    /** 跳转参加活动地址 */
	public static final String COL_URL = "url";

    /** 规则 */
	public static final String COL_RULE = "rule";

    /** 上架状态 0-下架；1-上架 */
	public static final String COL_PUBLISH_STATUS = "publish_status";

    /** [枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER */
	public static final String COL_STATUS = "status";

    /** 活动日期 */
	public static final String COL_DRAW_TIME = "draw_time";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 删除 0-未删除；1-已删除 */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_TIME = "del_time";

    /**  */
	public static final String COL_DEL_BY = "del_by";
}
